<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li ><a href="{:U('Admin/AppUser/detail',array("userId"=>number_format($userId,0,'','')))}">基本信息</a></li>
			<li><a href="{:U('Admin/AppUser/cai',array("userId"=>number_format($userId,0,'','')))}">竞猜数据</a></li>
			<li><a href="{:U('Admin/AppUser/score',array("userId"=>number_format($userId,0,'','')))}">会员积分</a></li>
			<li class="active"><a href="{:U('Admin/MoneyLog/index',array("userId"=>number_format($userId,0,'','')))}">我的慧闻币</a></li>
		</ul>
		 <form class="well form-search" name="query_form" id="query_form" method="post" action="{:U('Admin/MoneyLog/index')}">
		 流水类型： 
			<select class="select_2" name="falowWaterType" style="width: 65px;">
			    <option >全部</option>
				<option value=1 <if condition="$Think.post.falowWaterType eq 1 ">selected</if>>充值</option>
				<option value=2 <if condition="$Think.post.falowWaterType eq 2 ">selected</if>>支持</option>
				<option value=3 <if condition="$Think.post.falowWaterType eq 3 ">selected</if>>投注</option>
				<option value=4 <if condition="$Think.post.falowWaterType eq 4 ">selected</if>>获胜</option>
			</select>
			<input type="hidden" name='userId' value="{$userId}">
			<input type="button" name="query_form_btn" id="queryBtn" data-action="{:U('Admin/MoneyLog/index')}" class="btn btn-primary" value="查询" />
		</form> 
		<h3 class="text-success">余额:{$yue}</h3>
		<h3 class="">历史记录</h3>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>类型</th>
					<th>金额</th>
					<th>说明</th>
					
				</tr>
			</thead>
			<php>$type = array(1=>'充值',2=>'支持',3=>'投注',4=>'获胜');</php>
			<tbody>
				<foreach name="data" item="vo">
				<tr>
					<td>{$type[$vo['falowWaterType']]}</td>
					<td>{$vo.falowWaterNumber}</td>
					<td>{$vo.falowWaterDzsc}</td>
			
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
	$(document).ready(function(){
		$('input[name="query_form_btn"]').click(function(){
			 $('#query_form').attr('action', $(this).attr('data-action'));
			 $('#query_form').submit();
		});
		
	});
	</script>
</body>
</html>